<%@ page language="java" contentType="text/html; charset=UTF-8"%>
<%-- 引入页面头 --%>
<%@ include file="/pageHead.jsp"%>

<form name="form1" id="form1" action="" method="post">
	<input value="${channelInfo.id }" name="id" id="id" type="hidden"/>
	<div class="pageMain">
		<div class="pageTitle">
			<%=MessageResourcesUtils.getMessage(request, "systemmanage.bascsetting.title")%>
			<span></span>
			<%=MessageResourcesUtils.getMessage(request, "systemmanage.channle") %>
			<span></span>
			<%=MessageResourcesUtils.getMessage(request, "systemmanage.channle.update") %>
		</div>
		<div class="pageBody">
			<div class="form-group">
				<ul> 
					<li>
						<i>*</i>
						<label><%=MessageResourcesUtils.getMessage(request, "systemmanage.channle.column.code")%></label>
						<span>
							<input type="text" id="code" name="code" value="${channelInfo.code}" readonly="readonly" class="validate[required]"/>
						</span>
					</li>
					<li>
						<i>*</i>
						<label><%=MessageResourcesUtils.getMessage(request, "systemmanage.channle.column.name")%></label>
						<span>
							<input type="text" id="name" name="name" value="${channelInfo.name}" readonly="readonly" class="validate[required]"/>
						</span>
					</li>				
				</ul>
				<ul> 
					<li>
						<i>*</i>
						<label><%=MessageResourcesUtils.getMessage(request, "systemmanage.channle.column.goodsName")%></label>
						<span>
							<input type="text" id="goodsName" name="goodsName" value="${channelInfo.goodsName}" readonly="readonly" class="validate[required]"/>
						</span>
					</li>
					<li>
						<i>*</i>
						<label><%=MessageResourcesUtils.getMessage(request, "systemmanage.channle.column.unit")%></label>
						<span>
							<input type="text" id="unit" name="unit" value="${channelInfo.unit}" readonly="readonly" class="validate[required]"/>
						</span>
					</li>				
				</ul>		
				<ul> 
					<li>
						<i>*</i>
						<label><%=MessageResourcesUtils.getMessage(request, "systemmanage.channle.column.costPrice")%></label>
						<span>
							<input class="iss_amount4" type="text" id="costPrice" name="costPrice" value="${channelInfo.costPrice}" readonly="readonly"  class="validate[required]"/>
						</span>
					</li>
					<li>
						<i>*</i>
						<label><%=MessageResourcesUtils.getMessage(request, "systemmanage.channle.column.preferentialPrice")%></label>
						<span>
							<input class="iss_amount4" type="text" id="preferentialPrice" name="preferentialPrice" value="${channelInfo.preferentialPrice}" class="validate[required]"/>
						</span>
					</li>					
				</ul>	
			</div>		
        	<div class="button-group">
       			<input type="button" class="btn btn-default"  id="butSave" name="butSave" value='<%=MessageResourcesUtils.getMessage(request, "common.button.update") %>' />
       			<input type="button" class="btn btn-default"  id="butReturn" name="butReturn" value='<%=MessageResourcesUtils.getMessage(request, "common.button.back") %>' />
			</div>
		</div>
	</div>
</form>

<script type="text/javascript">	
$(document).ready(function() {

	$('#butSave').click(function() {
		var exp = $('#form1').validationEngine('validate');
		if(exp==true){
			// 显示进度条
			showSending();
			form1.action="${systemctx}/systemmanage/parameter/updateChannel.web";
			form1.submit();
		}
	});
	
	$('#butReturn').click(function(){
		parent.document.location.reload();
	    $.fn.closeIssWindow();
	});
});
</script>
<%-- 引入页面尾 --%>
<%@ include file="/pageFloor.jsp"%>